package com.jsmy.softapp.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.jsmy.softapp.R;
import com.jsmy.softapp.bean.BusinessFragmentBean;

/**
 * Created with Android Studio.
 * User: wei_cd.
 * Date: 2018/4/18.
 * Time: 16:29.
 * To change for file | settings | file and code templates.
 */

public class BusinessFragmentAdapter extends BaseQuickAdapter<BusinessFragmentBean,BaseViewHolder> {

    public BusinessFragmentAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, BusinessFragmentBean item) {
        helper.setImageResource(R.id.img,R.mipmap.ic_launcher)
                .setText(R.id.tv_title,"XXXXXXX")
                .setText(R.id.tv_content,"XXXXXXXXXXXXXX");
    }
}
